package com.juyu.miliao.api.domain;

import com.juyu.miliao.api.validator.BlacklistCheck;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * 拉黑用户
 *
 * @author wbf
 */
@Data
public class Blacklist {
    /**
     * 用户id
     */
    private long userId;
    /**
     * 被拉黑用户id
     */
    @Min(value = 1, groups = {BlacklistCheck.class})
    private int blacklistUserId;
    /**
     * 1拉黑 2解除拉黑
     */
    @Min(value = 1, groups = {BlacklistCheck.class})
    private int type;

    private String createTime;

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public int getBlacklistUserId() {
		return blacklistUserId;
	}

	public void setBlacklistUserId(int blacklistUserId) {
		this.blacklistUserId = blacklistUserId;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

}
